<#assign title="用户中奖列表编辑页面">
<#include "/admin/inc/top.html"/>
<div class="main-content" id="main-content">
    <header class="header navbar bg-white shadow">
        <div class="btn-group tool-button">
            <a class="btn btn-primary navbar-btn" href="${base!}/private/picc/prizeList" data-pjax><i
                    class="fa fa-reply"></i> 返回</a>
        </div>
    </header>
    <section class="content">
        <div class="form-wrapper" style="min-height:500px;">
            <section class="panel panel-form">
                <form id="unitAddForm" role="form" class="form-horizontal parsley-form" data-parsley-validate
                      action="${base!}/private/picc/prizeList/editDo" method="post">
                    <input type="hidden" name="id" value="${prizeList.id}">
                    <div class="row mb10">
                        <div class="col-lg-12">
                            <div class="form-group">
                                <label for="openId" class="col-sm-2 control-label">微信openId</label>

                                <div class="col-sm-8">
                                    <input type="text" id="openId" class="form-control" name="openId"
                                     placeholder="微信openId" value="${prizeList.openId}">
                                </div>
                            </div>
                            <div class="hr-line-dashed"></div>
                            <div class="form-group">
                                <label for="pid" class="col-sm-2 control-label">人保保单号</label>

                                <div class="col-sm-8">
                                    <input type="text" id="pid" class="form-control" name="pid"
                                     placeholder="人保保单号" value="${prizeList.pid}">
                                </div>
                            </div>
                            <div class="hr-line-dashed"></div>
                            <div class="form-group">
                                <label for="typeId" class="col-sm-2 control-label">活动ID</label>

                                <div class="col-sm-8">
                                    <input type="text" id="typeId" class="form-control" name="typeId"
                                     placeholder="活动ID" value="${prizeList.typeId}">
                                </div>
                            </div>
                            <div class="hr-line-dashed"></div>
                            <div class="form-group">
                                <label for="bizId" class="col-sm-2 control-label">用户参加活动后的业务ID</label>

                                <div class="col-sm-8">
                                    <input type="text" id="bizId" class="form-control" name="bizId"
                                     placeholder="用户参加活动后的业务ID" value="${prizeList.bizId}">
                                </div>
                            </div>
                            <div class="hr-line-dashed"></div>
                            <div class="form-group">
                                <label for="prizeId" class="col-sm-2 control-label">奖品ID0：特等奖 1~3一二三等奖 999:谢谢参与</label>

                                <div class="col-sm-8">
                                    <input type="text" id="prizeId" class="form-control" name="prizeId"
                                     placeholder="奖品ID0：特等奖 1~3一二三等奖 999:谢谢参与" value="${prizeList.prizeId}">
                                </div>
                            </div>
                            <div class="hr-line-dashed"></div>
                            <div class="form-group">
                                <label for="prizeDetail" class="col-sm-2 control-label">奖品内容</label>

                                <div class="col-sm-8">
                                    <input type="text" id="prizeDetail" class="form-control" name="prizeDetail"
                                     placeholder="奖品内容" value="${prizeList.prizeDetail}">
                                </div>
                            </div>
                            <div class="hr-line-dashed"></div>
                            <div class="form-group">
                                <label for="typeName" class="col-sm-2 control-label">中奖活动名称</label>

                                <div class="col-sm-8">
                                    <input type="text" id="typeName" class="form-control" name="typeName"
                                     placeholder="中奖活动名称" value="${prizeList.typeName}">
                                </div>
                            </div>
                            <div class="hr-line-dashed"></div>
                            <div class="form-group">
                                <label for="prizeDate" class="col-sm-2 control-label">用户抽奖时间</label>

                                <div class="col-sm-8">
                                    <input type="text" id="prizeDate" class="form-control" name="prizeDate"
                                     placeholder="用户抽奖时间" value="${prizeList.prizeDate}">
                                </div>
                            </div>
                            <div class="hr-line-dashed"></div>
                            <div class="form-group">
                                <label for="prizeResult" class="col-sm-2 control-label">用户是否中奖0：未中奖 1：中奖了</label>

                                <div class="col-sm-8">
                                    <input type="text" id="prizeResult" class="form-control" name="prizeResult"
                                     placeholder="用户是否中奖0：未中奖 1：中奖了" value="${prizeList.prizeResult}">
                                </div>
                            </div>
                            <div class="hr-line-dashed"></div>
                            <div class="form-group">
                                <label for="prizeSecrect" class="col-sm-2 control-label">中奖后的秘钥</label>

                                <div class="col-sm-8">
                                    <input type="text" id="prizeSecrect" class="form-control" name="prizeSecrect"
                                     placeholder="中奖后的秘钥" value="${prizeList.prizeSecrect}">
                                </div>
                            </div>
                            <div class="hr-line-dashed"></div>
                            <div class="form-group">
                                <label for="phoneNum" class="col-sm-2 control-label">领奖人手机号</label>

                                <div class="col-sm-8">
                                    <input type="text" id="phoneNum" class="form-control" name="phoneNum"
                                     placeholder="领奖人手机号" value="${prizeList.phoneNum}">
                                </div>
                            </div>
                            <div class="hr-line-dashed"></div>
                            <div class="form-group">
                                <label for="userName" class="col-sm-2 control-label">领奖人姓名</label>

                                <div class="col-sm-8">
                                    <input type="text" id="userName" class="form-control" name="userName"
                                     placeholder="领奖人姓名" value="${prizeList.userName}">
                                </div>
                            </div>
                            <div class="hr-line-dashed"></div>
                            <div class="form-group">
                                <label for="zcode" class="col-sm-2 control-label">领奖人邮编</label>

                                <div class="col-sm-8">
                                    <input type="text" id="zcode" class="form-control" name="zcode"
                                     placeholder="领奖人邮编" value="${prizeList.zcode}">
                                </div>
                            </div>
                            <div class="hr-line-dashed"></div>
                            <div class="form-group">
                                <label for="address" class="col-sm-2 control-label">领奖人地址</label>

                                <div class="col-sm-8">
                                    <input type="text" id="address" class="form-control" name="address"
                                     placeholder="领奖人地址" value="${prizeList.address}">
                                </div>
                            </div>
                            <div class="hr-line-dashed"></div>
                        </div>
                    </div>
                    <div class="col-lg-3"></div>
                    <div class="col-lg-6">
                        <div class="form-group text-center">
                            <label></label>

                            <div>
                                <button class="btn btn-primary btn-block btn-lg btn-parsley"
                                        data-loading-text="正在提交...">提 交
                                </button>
                            </div>
                        </div>
                    </div>
                </form>
            </section>

        </div>
        <a class="exit-offscreen"></a>
    </section>
</div>
<script language="JavaScript">

    $(document).ready(function () {
        //initTreeView();
        $('#unitAddForm').ajaxForm({
            dataType: 'json',
            beforeSubmit: function (arr, form, options) {
                form.find("button:submit").button("loading");
            },
            success: function (data, statusText, xhr, form) {
                if (data.code == 200) {
                    Toast.success(data.msg);
                } else {
                    Toast.error(data.msg);
                }
                form.find("button:submit").button("reset");
            }
        });
    });
</script>
<#include "/admin/inc/bottom.html"/>